﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdminStuAdd.aspx.cs" Inherits="LIMS.Web.AdminStuAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>高校实验室网站后台管理</title>
    <style type="text/css">
        .box-3
        {
            border: 1px solid #ccc;
        }
    </style>
    <script type="text/javascript" src="jQuery/jquery-1.7.1.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#Reset1").click(function () {
                $("#txtStudentID").val("");
                $("#txtStudentName").val("");
                $("#txtPassword1").val("");
                $("#txtPassword2").val("");
            })
        })
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
        <table width="700" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
            <tr>
                <td height="60" bgcolor="#FFFFFF">
                    &nbsp;&nbsp;<strong>学生信息编辑</strong>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="450" border="0" cellspacing="1" cellpadding="0">
                        <tr>
                            <td width="200" align="right" bgcolor="#FFFFFF" style="height: 30px">
                                <font color="#FF0000" size="2">*&nbsp;</font><font size="2">学号</font>
                            </td>
                            <td width="500" bgcolor="#FFFFFF" style="height: 30px">
                                &nbsp;<asp:TextBox ID="txtStudentID" runat="server" CssClass="box-3" Width="90%"
                                    MaxLength="16"></asp:TextBox>
                                <br />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtStudentID"
                                    Display="None" ErrorMessage="学生学号不能为空" ForeColor="#AA11FF">学生学号不能为空</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtStudentID"
                                    Display="Dynamic" ErrorMessage="学号必须12位纯数字" ForeColor="#AA11FF" ValidationExpression="^\d{12}$"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td width="200" height="30" align="right" bgcolor="#FFFFFF">
                                <font size="2"><span style="color: #ff0000">*&nbsp;<font size="2"></font></span>姓名</font>
                            </td>
                            <td width="500" height="30" bgcolor="#FFFFFF">
                                &nbsp;<asp:TextBox ID="txtStudentName" runat="server" CssClass="box-3" MaxLength="50"
                                    Width="90%"></asp:TextBox>
                                <br />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtStudentName"
                                    Display="Dynamic" ErrorMessage="学生姓名不能为空" ForeColor="#AA11FF">学生姓名不能为空</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff" height="30" width="200">
                                <font size="2">&nbsp;<span style="color: #ff0000">*&nbsp;</span>密码</font>
                            </td>
                            <td bgcolor="#ffffff" height="30" width="500">
                                &nbsp;<asp:TextBox ID="txtPassword1" runat="server" CssClass="box-3" MaxLength="40"
                                    TextMode="Password" Width="90%"></asp:TextBox>
                                <br />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPassword1"
                                    Display="Dynamic" ErrorMessage="密码不能为空！" ForeColor="#AA11FF"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff" height="30" width="200">
                                <font size="2"><span style="color: #ff0000">*&nbsp;</span></font><font size="2">确认密码</font>
                            </td>
                            <td bgcolor="#ffffff" height="30" width="500">
                                &nbsp;<asp:TextBox ID="txtPassword2" runat="server" CssClass="box-3" MaxLength="40"
                                    TextMode="Password" Width="90%"></asp:TextBox>
                                <br />
                                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword1"
                                    ControlToValidate="txtPassword2" Display="Dynamic" ErrorMessage="两次密码必须一致" ForeColor="#AA11FF"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff" height="30" width="200">
                                <font size="2"><span style="color: #ff0000">*&nbsp;</span>性别</font>
                            </td>
                            <td bgcolor="#ffffff" height="30" width="500">
                                &nbsp;
                                <select id="selGender" runat="server">
                                    <option value="1" selected="selected">男</option>
                                    <option value="0">女</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff" height="30" width="200">
                                <font size="2"><span style="color: #ff0000">*&nbsp;</span>班级</font>
                            </td>
                            <td bgcolor="#ffffff" height="30" width="500">
                                &nbsp;
                                <%-- <asp:CheckBoxList ID="cbClassList" RepeatDirection="Horizontal" runat="server" Style="margin-left: 20px;">
                                    <asp:ListItem>请选择参与实验的班级</asp:ListItem>
                                </asp:CheckBoxList>--%>
                                <asp:RadioButtonList ID="rbClassList" runat="server" RepeatDirection="Horizontal"
                                    runat="server" Style="margin-left: 20px;">
                                    <asp:ListItem>请选择参与实验的班级</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" colspan="2" align="center" bgcolor="#FFFFFF">
                                <%--  <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                                    ShowSummary="False" />
                                &nbsp;--%>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" colspan="2" align="center" bgcolor="#FFFFFF">
                                <asp:Button ID="btnOK" runat="server" Text="保存提交" OnClick="btnOK_Click" />&nbsp;<input
                                    id="Reset1" type="reset" value="重新填写" />
                                <input id="hidInfoID" type="hidden" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
